package com.sf.osms.dep.processor.util;

import org.dozer.DozerBeanMapper;
import org.dozer.Mapper;

public class DozerSingleton {
	
	private static class SingletonHolder{
		  //静态初始化器，由JVM来保证线程安全
		  private static Mapper instance= new DozerBeanMapper();
	}
	
	//私有化构造方法
	private DozerSingleton(){
		
	}
	
	public static Mapper getMapper(){
		return SingletonHolder.instance;
	}
	
}	
